<?php

namespace home;

use \core\Controller;

class Index extends Controller
{
    public function index($name = "hello world", $age = 0)
    {
        /*
         * echo "<h1>Home Index!</h1>";
         * echo '<h3>HOME Index name Arg: '.$name.'<br />';
         * echo 'HOME Index age Arg: '.$age.'</h3>';
         */
        // $name = dump(M('test')->select(), true, "test table: ");
        /*
         * $this->assign('name', $name);
         * $this->assign('age', $age);
         * $this->assign('data', M('test')->select());
         */
        $this->setOption('title', '<h1>My View hello kyo</h1>');
        $this->setOption('body', '<h1>My View hello kyo</h1>');
        $this->display();
        // $this->display('string:<h1>{$name}: {$age}</h1>');
    }

    public function run()
    {
        dump("runing!!.....", false);
    }
}
